package com.yangit.temp.common.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import lombok.extern.slf4j.Slf4j;

@Controller
@Slf4j
public class ErrorController {
	
	@RequestMapping(value = "/Error/{errorCode}")
	public String error(@PathVariable String errorCode) {
	    log.error("ErrorController@error {} !",errorCode);
	    return "error/" + errorCode;
	}
}


